package com.project.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.seckill.entity.Product;
import com.project.seckill.entity.ProductStockLog;

public interface ProductService extends IService<Product> {

    static void updateProductStockLogStatus(String productStockLogId, int i) {
    }

    String generateToken(Integer userId, Long productId);

    void getProductById(Long productId);

    boolean decreaseStockInCache(Long productId);

    ProductStockLog createProductStockLog(Long productId, int num);

    void increaseSales(Long productId, int num);
}
